baMsgBox("The installer could not be initiated", "Error", "OK", "stop", 1)
halt()
end if
chooseDestResult = installer.chooseDest()
if not chooseDestResult then
if baMsgBox("Exit the installer?", "Exit?", "OKCancel", "question", 1) = "OK" then
halt()
else
runInstaller()
exit
end if
end if
if not installer.confirmInstall() then
if baMsgBox("Exit the installer?", "Exit?", "OKCancel", "question", 1) = "OK" then
halt()
else
runInstaller()
exit
end if
end if
copyResult = installer.copyFiles()
if not copyResult then
baMsgBox("An unspecified error occured whilst copying files - the software may not work correctly" & RETURN & "No system files have been edited and you may safely delete the destination folder that" & RETURN & "was specified along with any files it contains. Please re-run this installer to try again", "Error", "OK", "information", 1)
halt()
end if
baMsgBox("The software has been successfully installed into the specified folder", "Complete", "OK", "information", 1)